package net.fltx.p2p.common;

import java.nio.channels.SocketChannel;

/**
 * p2p客户端信息
 * @author fltx.net
 * @Date 2021/2/22 22:49
 * @Version 1.0
 */
public class P2PClientInfo {
    protected String uuid;
    protected String username;
    protected String address;
    protected int port;
    protected int status;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }


    @Override
    public String toString() {
        return "P2PClientInfo{" +
                "uuid='" + uuid + '\'' +
                ", username='" + username + '\'' +
                ", address='" + address + '\'' +
                ", port=" + port +
                ", status=" + status +
                '}';
    }
}
